/*
 * @Descripttion:
 * @Author: YuZhenJing
 * @Date: 2020-04-15 15:32:07
 * @LastEditors: YuZhenJing
 * @LastEditTime: 2020-04-15 15:43:24
 */
const routes = [
  {
    path: '/',
    component: () => import('layouts/MainLayout.vue'),
    children: [{ path: '', component: () => import('pages/WinnerPicker.vue') }]
  }
]

// Always leave this as last one
if (process.env.MODE !== 'ssr') {
  routes.push({
    path: '*',
    component: () => import('pages/Error404.vue')
  })
}

export default routes
